# 元组内的数据是不能修改的
num_list = (1, 2, 3, 4, 5, 6)
print(num_list)
print(type(num_list))
num_list = (1,)
print(num_list)
print(type(num_list))
num_list = (1)
print(num_list)
print(type(num_list))
num_list = ("aaa")
print(type(num_list))

"""
元组查找
"""
t1 = ("aa", "bb", "cc", "dd")
# 1. 下标
print(t1[0])
# 2. index()
print(t1.index("bb"))
# 3. count()
print(t1.count("aa"))
# 4. len()
print(len(t1))

"""
元组中存在列表
"""
t2 = ("aa", "bb", ["cc","dd"])
t2[2][0] = "ee"
print(t2)
